package com.ayic.garbagerecycle.service;

import com.ayic.garbagerecycle.pojo.Result;
import com.ayic.garbagerecycle.pojo.WasteRecord;
import com.ayic.garbagerecycle.pojo.WasteType;

import java.util.List;

public interface WasteService {
    /**
     * 根据站点ID获取该站点的所有回收记录
     * @param stationId 站点ID
     * @return 回收记录列表
     */
    List<WasteRecord> getWasteRecordsByStationId(Integer stationId);
    List<WasteRecord> queryWasteUserRec (Integer userId);
    Result addRecord(WasteRecord wasteRecord, Integer userId);

    String queryType(Integer wasteType);
    
    /**
     * 根据垃圾类型名称查询垃圾类型信息
     *
     * @param wasteTypeName 垃圾类型名称
     * @return 垃圾类型信息
     */
    WasteType getWasteTypeByName(String wasteTypeName);
}